<template>
  <div class="loading">
    <van-loading size="40px" color="#fff" vertical>加载中...</van-loading>
  </div>
</template>

<script>
import { defineComponent } from 'vue'

export default defineComponent({
  setup() {},
})
</script>

<style scoped lang="scss">
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  // background: rgba(0, 0, 0, 0.1);
  .van-loading {
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    // background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
  }
  :deep(.van-loading__spinner),
  :deep(.van-loading__text) {
    color: green !important;
  }
}
</style>
